<!DOCTYPE html>
<html lang="en" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>01vue</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app" >
    <ul>
        <li v-for="user in users">
            {{user.name}}--{{user.age}}
        </li>
    </ul>
</div>


</body>
<script type="text/javascript">

    var app =new Vue({
        el:"#app",
        data:{
            users:[]
        },
        created() {
            axios({
                url:"data.json",
                method:"get"
            }).then(res=>{
                console.log(res);
                app.users = res.data;
            }).catch(err=>alert(err));
        }

    })

</script>
</html>